package com.xdf.whiteaccount.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 版本号：20240401
 * 由 chanchaw 创建于 2025-8-2 9:55:00，实现功能如下：
 * 1. 实现接口 Serializable
 * 2. 无参构造函数
 * 3. 建造者模式
 * 4. getter,setter,toString()
 * 存放当前刷卡电脑存放的临时刷卡数据，挡车工对应的重量和米数
 */
public class GjrkbilldraftCpDetail implements Serializable {
    public GjrkbilldraftCpDetail() {}
    private static final long serialVersionUID = 1L;

    private Integer id;//
    private Integer bID;//存放打卷草稿本主键
    private String bCN;//
    private String bKH;//缸单卡号，计划单主键
    private String bPeople;//
    private String bJTH;//
    private BigDecimal bMS;//
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date bDate;//

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getbID() {
        return bID;
    }

    public void setbID(Integer bID) {
        this.bID = bID;
    }

    public String getbCN() {
        return bCN;
    }

    public void setbCN(String bCN) {
        this.bCN = bCN;
    }

    public String getbKH() {
        return bKH;
    }

    public void setbKH(String bKH) {
        this.bKH = bKH;
    }

    public String getbPeople() {
        return bPeople;
    }

    public void setbPeople(String bPeople) {
        this.bPeople = bPeople;
    }

    public String getbJTH() {
        return bJTH;
    }

    public void setbJTH(String bJTH) {
        this.bJTH = bJTH;
    }

    public BigDecimal getbMS() {
        return bMS;
    }

    public void setbMS(BigDecimal bMS) {
        this.bMS = bMS;
    }

    public Date getbDate() {
        return bDate;
    }

    public void setbDate(Date bDate) {
        this.bDate = bDate;
    }

    @Override
    public String toString() {
        return "GjrkbilldraftCpDetail{" +
        ",id='" + id + '\'' +
        ",bID='" + bID + '\'' +
        ",bCN='" + bCN + '\'' +
        ",bKH='" + bKH + '\'' +
        ",bPeople='" + bPeople + '\'' +
        ",bJTH='" + bJTH + '\'' +
        ",bMS='" + bMS + '\'' +
        ",bDate='" + bDate + '\'' +
        '}';
    }

    public static class Builder{
        private Integer id;
        private Integer bID;
        private String bCN;
        private String bKH;
        private String bPeople;
        private String bJTH;
        private BigDecimal bMS;
        private Date bDate;

        public Builder id(Integer id){this.id = id;return this;}
        public Builder bID(Integer bID){this.bID = bID;return this;}
        public Builder bCN(String bCN){this.bCN = bCN;return this;}
        public Builder bKH(String bKH){this.bKH = bKH;return this;}
        public Builder bPeople(String bPeople){this.bPeople = bPeople;return this;}
        public Builder bJTH(String bJTH){this.bJTH = bJTH;return this;}
        public Builder bMS(BigDecimal bMS){this.bMS = bMS;return this;}
        public Builder bDate(Date bDate){this.bDate = bDate;return this;}
        public GjrkbilldraftCpDetail build(){
            return new GjrkbilldraftCpDetail(this);
        }
    }

    public static Builder builder(){return new Builder();}
    public GjrkbilldraftCpDetail(Builder builder){
        this.id = builder.id;
        this.bID = builder.bID;
        this.bCN = builder.bCN;
        this.bKH = builder.bKH;
        this.bPeople = builder.bPeople;
        this.bJTH = builder.bJTH;
        this.bMS = builder.bMS;
        this.bDate = builder.bDate;
    }
    /**
     * 自定义代码请写在此处之后
     */
}
